/**

This file is part of MaCI/GIMnet.

MaCI/GIMnet is free software: you can redistribute it and/or modify it 
under the terms of the GNU Lesser General Public License as published 
by the Free Software Foundation, either version 3 of the License, or 
(at your option) any later version.

MaCI/GIMnet is distributed in the hope that it will be useful, but WITHOUT 
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public 
License for more details.

You should have received a copy of the GNU Lesser General Public 
License along with GIMnet. (See COPYING.LESSER) If not, see 
<http://www.gnu.org/licenses/>.

**/
///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Apr 17 2008)
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////

#include "MaCI_Logger_GUI.h"

///////////////////////////////////////////////////////////////////////////

MainFrame::MainFrame( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxFrame( parent, id, title, pos, size, style )
{
	this->SetSizeHints( wxDefaultSize, wxDefaultSize );
	
	m_menubar1 = new wxMenuBar( 0 );
	m_menu_File = new wxMenu();
	wxMenuItem* m_menu_File_Quit;
	m_menu_File_Quit = new wxMenuItem( m_menu_File, wxID_ANY, wxString( wxT("&Quit") ) , wxEmptyString, wxITEM_NORMAL );
	m_menu_File->Append( m_menu_File_Quit );
	
	m_menubar1->Append( m_menu_File, wxT("&File") );
	
	m_menu_Set = new wxMenu();
	wxMenuItem* m_menuItem2;
	m_menuItem2 = new wxMenuItem( m_menu_Set, wxID_SetFilename, wxString( wxT("Filename") ) , wxEmptyString, wxITEM_NORMAL );
	m_menu_Set->Append( m_menuItem2 );
	
	wxMenuItem* m_menuItem4;
	m_menuItem4 = new wxMenuItem( m_menu_Set, wxID_Start, wxString( wxT("Start Selected") ) , wxEmptyString, wxITEM_NORMAL );
	m_menu_Set->Append( m_menuItem4 );
	
	wxMenuItem* m_menuItem5;
	m_menuItem5 = new wxMenuItem( m_menu_Set, wxID_Stop, wxString( wxT("Stop Selected") ) , wxEmptyString, wxITEM_NORMAL );
	m_menu_Set->Append( m_menuItem5 );
	
	wxMenuItem* m_menuItem7;
	m_menuItem7 = new wxMenuItem( m_menu_Set, wxID_Skip, wxString( wxT("Skip N measurement") ) , wxEmptyString, wxITEM_NORMAL );
	m_menu_Set->Append( m_menuItem7 );
	
	m_menubar1->Append( m_menu_Set, wxT("&Set") );
	
	m_menu3 = new wxMenu();
	wxMenuItem* m_menuItem3;
	m_menuItem3 = new wxMenuItem( m_menu3, wxID_ANY, wxString( wxT("About") ) , wxEmptyString, wxITEM_NORMAL );
	m_menu3->Append( m_menuItem3 );
	
	m_menubar1->Append( m_menu3, wxT("&Help") );
	
	this->SetMenuBar( m_menubar1 );
	
	wxBoxSizer* bSizer1;
	bSizer1 = new wxBoxSizer( wxVERTICAL );
	
	wxBoxSizer* bSizer7;
	bSizer7 = new wxBoxSizer( wxVERTICAL );
	
	wxBoxSizer* bSizer8;
	bSizer8 = new wxBoxSizer( wxVERTICAL );
	
	wxBoxSizer* bSizer81;
	bSizer81 = new wxBoxSizer( wxHORIZONTAL );
	
	m_listCtrl_Services = new wxListCtrl( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT );
	bSizer81->Add( m_listCtrl_Services, 1, wxALL|wxEXPAND, 5 );
	
	bSizer8->Add( bSizer81, 1, wxEXPAND, 5 );
	
	wxBoxSizer* bSizer12;
	bSizer12 = new wxBoxSizer( wxHORIZONTAL );
	
	wxBoxSizer* bSizer13;
	bSizer13 = new wxBoxSizer( wxVERTICAL );
	
	m_button_Start = new wxButton( this, wxID_ANY, wxT("Start Selected"), wxDefaultPosition, wxDefaultSize, 0 );
	bSizer13->Add( m_button_Start, 0, wxALIGN_BOTTOM|wxALL|wxEXPAND, 5 );
	
	m_button_startAll = new wxButton( this, wxID_ANY, wxT("Start all"), wxDefaultPosition, wxDefaultSize, 0 );
	bSizer13->Add( m_button_startAll, 0, wxALL|wxEXPAND, 5 );
	
	bSizer12->Add( bSizer13, 1, wxEXPAND, 5 );
	
	wxBoxSizer* bSizer15;
	bSizer15 = new wxBoxSizer( wxVERTICAL );
	
	
	bSizer15->Add( 0, 0, 1, wxEXPAND, 5 );
	
	bSizer12->Add( bSizer15, 1, wxEXPAND, 5 );
	
	wxBoxSizer* bSizer14;
	bSizer14 = new wxBoxSizer( wxVERTICAL );
	
	m_button5 = new wxButton( this, wxID_ANY, wxT("Stop selected"), wxDefaultPosition, wxDefaultSize, 0 );
	bSizer14->Add( m_button5, 0, wxALIGN_BOTTOM|wxALL|wxEXPAND, 5 );
	
	m_button_stopAll = new wxButton( this, wxID_ANY, wxT("Stop all"), wxDefaultPosition, wxDefaultSize, 0 );
	bSizer14->Add( m_button_stopAll, 0, wxALL|wxEXPAND, 5 );
	
	bSizer12->Add( bSizer14, 1, wxEXPAND, 5 );
	
	bSizer8->Add( bSizer12, 0, wxALIGN_BOTTOM|wxEXPAND, 5 );
	
	bSizer7->Add( bSizer8, 4, wxEXPAND, 5 );
	
	bSizer1->Add( bSizer7, 1, wxEXPAND, 5 );
	
	this->SetSizer( bSizer1 );
	this->Layout();
	
	// Connect Events
	this->Connect( m_menu_File_Quit->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( MainFrame::OnQuitClick ) );
	this->Connect( m_menuItem2->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( MainFrame::OnMenuSetFilenameSelected ) );
	this->Connect( m_menuItem4->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( MainFrame::OnButtonStartClick ) );
	this->Connect( m_menuItem5->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( MainFrame::OnButtonStopClick ) );
	this->Connect( m_menuItem7->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( MainFrame::OnEveryNthSelected ) );
	this->Connect( m_menuItem3->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( MainFrame::OnAboutSelected ) );
	m_listCtrl_Services->Connect( wxEVT_COMMAND_LIST_ITEM_DESELECTED, wxListEventHandler( MainFrame::OnListDeselected ), NULL, this );
	m_listCtrl_Services->Connect( wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK, wxListEventHandler( MainFrame::OnListRightClick ), NULL, this );
	m_listCtrl_Services->Connect( wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler( MainFrame::OnListSelected ), NULL, this );
	m_button_Start->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( MainFrame::OnButtonStartClick ), NULL, this );
	m_button_startAll->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( MainFrame::OnStartAllClick ), NULL, this );
	m_button5->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( MainFrame::OnButtonStopClick ), NULL, this );
	m_button_stopAll->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( MainFrame::OnStopAllClick ), NULL, this );
}

MainFrame::~MainFrame()
{
	// Disconnect Events
	this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( MainFrame::OnQuitClick ) );
	this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( MainFrame::OnMenuSetFilenameSelected ) );
	this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( MainFrame::OnButtonStartClick ) );
	this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( MainFrame::OnButtonStopClick ) );
	this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( MainFrame::OnEveryNthSelected ) );
	this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( MainFrame::OnAboutSelected ) );
	m_listCtrl_Services->Disconnect( wxEVT_COMMAND_LIST_ITEM_DESELECTED, wxListEventHandler( MainFrame::OnListDeselected ), NULL, this );
	m_listCtrl_Services->Disconnect( wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK, wxListEventHandler( MainFrame::OnListRightClick ), NULL, this );
	m_listCtrl_Services->Disconnect( wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler( MainFrame::OnListSelected ), NULL, this );
	m_button_Start->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( MainFrame::OnButtonStartClick ), NULL, this );
	m_button_startAll->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( MainFrame::OnStartAllClick ), NULL, this );
	m_button5->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( MainFrame::OnButtonStopClick ), NULL, this );
	m_button_stopAll->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( MainFrame::OnStopAllClick ), NULL, this );
}

Question_Dialog::Question_Dialog( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
{
	this->SetSizeHints( wxSize( 300,100 ), wxDefaultSize );
	
	wxBoxSizer* bSizer13;
	bSizer13 = new wxBoxSizer( wxVERTICAL );
	
	wxBoxSizer* bSizer14;
	bSizer14 = new wxBoxSizer( wxHORIZONTAL );
	
	m_staticText_Question = new wxStaticText( this, wxID_ANY, wxT("Question?"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText_Question->Wrap( 100 );
	m_staticText_Question->SetMaxSize( wxSize( 280,80 ) );
	
	bSizer14->Add( m_staticText_Question, 1, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
	
	m_textCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
	bSizer14->Add( m_textCtrl, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5 );
	
	bSizer13->Add( bSizer14, 1, wxEXPAND, 5 );
	
	wxBoxSizer* bSizer15;
	bSizer15 = new wxBoxSizer( wxHORIZONTAL );
	
	wxBoxSizer* bSizer17;
	bSizer17 = new wxBoxSizer( wxVERTICAL );
	
	m_button9 = new wxButton( this, wxID_ANY, wxT("Ok"), wxDefaultPosition, wxDefaultSize, 0 );
	bSizer17->Add( m_button9, 0, wxALIGN_CENTER|wxALL, 5 );
	
	bSizer15->Add( bSizer17, 1, wxALIGN_CENTER|wxEXPAND, 5 );
	
	wxBoxSizer* bSizer18;
	bSizer18 = new wxBoxSizer( wxVERTICAL );
	
	m_button10 = new wxButton( this, wxID_ANY, wxT("Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
	bSizer18->Add( m_button10, 0, wxALIGN_CENTER|wxALL, 5 );
	
	bSizer15->Add( bSizer18, 1, wxALIGN_RIGHT|wxEXPAND, 5 );
	
	bSizer13->Add( bSizer15, 0, wxEXPAND, 5 );
	
	this->SetSizer( bSizer13 );
	this->Layout();
	bSizer13->Fit( this );
	
	// Connect Events
	m_button9->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( Question_Dialog::OnOk ), NULL, this );
	m_button10->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( Question_Dialog::OnCancel ), NULL, this );
}

Question_Dialog::~Question_Dialog()
{
	// Disconnect Events
	m_button9->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( Question_Dialog::OnOk ), NULL, this );
	m_button10->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( Question_Dialog::OnCancel ), NULL, this );
}

Filename_Dialog::Filename_Dialog( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
{
	this->SetSizeHints( wxDefaultSize, wxDefaultSize );
	
	wxBoxSizer* bSizer10;
	bSizer10 = new wxBoxSizer( wxVERTICAL );
	
	wxBoxSizer* bSizer11;
	bSizer11 = new wxBoxSizer( wxHORIZONTAL );
	
	m_staticText2 = new wxStaticText( this, wxID_ANY, wxT("Filename:"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText2->Wrap( -1 );
	bSizer11->Add( m_staticText2, 0, wxALL, 5 );
	
	m_textCtrl_Filename = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
	bSizer11->Add( m_textCtrl_Filename, 1, wxALL, 5 );
	
	bSizer10->Add( bSizer11, 1, wxEXPAND, 5 );
	
	wxBoxSizer* bSizer12;
	bSizer12 = new wxBoxSizer( wxHORIZONTAL );
	
	m_button_OK = new wxButton( this, wxID_ANY, wxT("Ok"), wxDefaultPosition, wxDefaultSize, 0 );
	bSizer12->Add( m_button_OK, 1, wxALIGN_CENTER|wxALL, 5 );
	
	m_button6 = new wxButton( this, wxID_ANY, wxT("Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
	bSizer12->Add( m_button6, 1, wxALIGN_CENTER|wxALL, 5 );
	
	m_button7 = new wxButton( this, wxID_ANY, wxT("Set default name"), wxDefaultPosition, wxDefaultSize, 0 );
	bSizer12->Add( m_button7, 1, wxALIGN_CENTER|wxALL, 5 );
	
	bSizer10->Add( bSizer12, 1, wxEXPAND, 5 );
	
	this->SetSizer( bSizer10 );
	this->Layout();
	
	// Connect Events
	m_button_OK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( Filename_Dialog::OnButtonOK ), NULL, this );
	m_button6->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( Filename_Dialog::OnButtonCancel ), NULL, this );
	m_button7->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( Filename_Dialog::OnButtonDefaultName ), NULL, this );
}

Filename_Dialog::~Filename_Dialog()
{
	// Disconnect Events
	m_button_OK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( Filename_Dialog::OnButtonOK ), NULL, this );
	m_button6->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( Filename_Dialog::OnButtonCancel ), NULL, this );
	m_button7->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( Filename_Dialog::OnButtonDefaultName ), NULL, this );
}

About_Dialog::About_Dialog( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
{
	this->SetSizeHints( wxDefaultSize, wxDefaultSize );
	
	wxBoxSizer* bSizer15;
	bSizer15 = new wxBoxSizer( wxVERTICAL );
	
	m_staticText3 = new wxStaticText( this, wxID_ANY, wxT("MaCI Logger - Gimbo Component"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText3->Wrap( -1 );
	m_staticText3->SetFont( wxFont( 16, 70, 90, 92, false, wxEmptyString ) );
	
	bSizer15->Add( m_staticText3, 0, wxALIGN_CENTER|wxALL, 5 );
	
	m_staticText_Version = new wxStaticText( this, wxID_ANY, wxT("Version 0.1"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText_Version->Wrap( -1 );
	bSizer15->Add( m_staticText_Version, 0, wxALIGN_CENTER|wxALL, 5 );
	
	m_staticText5 = new wxStaticText( this, wxID_ANY, wxT("by"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText5->Wrap( -1 );
	bSizer15->Add( m_staticText5, 0, wxALIGN_CENTER|wxALL, 5 );
	
	m_staticText6 = new wxStaticText( this, wxID_ANY, wxT("Matthieu Myrsky <matthieu.myrsky@tkk.fi>"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText6->Wrap( -1 );
	m_staticText6->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), 70, 90, 92, false, wxEmptyString ) );
	
	bSizer15->Add( m_staticText6, 0, wxALIGN_CENTER|wxALL, 5 );
	
	m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
	bSizer15->Add( m_staticline1, 0, wxEXPAND | wxALL, 5 );
	
	m_staticText7 = new wxStaticText( this, wxID_ANY, wxT("Supported log types"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText7->Wrap( -1 );
	m_staticText7->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), 70, 90, 92, false, wxEmptyString ) );
	
	bSizer15->Add( m_staticText7, 0, wxALIGN_CENTER|wxALL, 5 );
	
	m_staticText13 = new wxStaticText( this, wxID_ANY, wxT("MaCI_CoordinateDrive"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText13->Wrap( -1 );
	bSizer15->Add( m_staticText13, 0, wxALIGN_CENTER|wxALL, 5 );
	
	m_staticText12 = new wxStaticText( this, wxID_ANY, wxT("MaCI_Energy"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText12->Wrap( -1 );
	bSizer15->Add( m_staticText12, 0, wxALIGN_CENTER|wxALL, 5 );
	
	m_staticText11 = new wxStaticText( this, wxID_ANY, wxT("MaCI_IMU"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText11->Wrap( -1 );
	bSizer15->Add( m_staticText11, 0, wxALIGN_CENTER|wxALL, 5 );
	
	m_staticText8 = new wxStaticText( this, wxID_ANY, wxT("MaCI_Position"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText8->Wrap( -1 );
	bSizer15->Add( m_staticText8, 0, wxALIGN_CENTER|wxALL, 5 );
	
	m_staticText10 = new wxStaticText( this, wxID_ANY, wxT("MaCI_Ranging"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText10->Wrap( -1 );
	bSizer15->Add( m_staticText10, 0, wxALIGN_CENTER|wxALL, 5 );
	
	m_staticText9 = new wxStaticText( this, wxID_ANY, wxT("MaCI_SpeedCtrl"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText9->Wrap( -1 );
	bSizer15->Add( m_staticText9, 0, wxALIGN_CENTER|wxALL, 5 );
	
	m_staticText121 = new wxStaticText( this, wxID_ANY, wxT("MaCI_Wireless"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText121->Wrap( -1 );
	bSizer15->Add( m_staticText121, 0, wxALIGN_CENTER|wxALL, 5 );
	
	m_staticText1211 = new wxStaticText( this, wxID_ANY, wxT("MaCI_Image"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText1211->Wrap( -1 );
	bSizer15->Add( m_staticText1211, 0, wxALIGN_CENTER|wxALL, 5 );
	
	m_staticline3 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
	bSizer15->Add( m_staticline3, 0, wxEXPAND | wxALL, 5 );
	
	
	bSizer15->Add( 0, 20, 1, wxEXPAND, 5 );
	
	m_button8 = new wxButton( this, wxID_ANY, wxT("Ok"), wxDefaultPosition, wxDefaultSize, 0 );
	bSizer15->Add( m_button8, 0, wxALIGN_CENTER|wxALL, 5 );
	
	this->SetSizer( bSizer15 );
	this->Layout();
	bSizer15->Fit( this );
	
	// Connect Events
	m_button8->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( About_Dialog::OnOk ), NULL, this );
}

About_Dialog::~About_Dialog()
{
	// Disconnect Events
	m_button8->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( About_Dialog::OnOk ), NULL, this );
}

Error_Dialog::Error_Dialog( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
{
	this->SetSizeHints( wxSize( 400,100 ), wxDefaultSize );
	
	wxBoxSizer* bSizer16;
	bSizer16 = new wxBoxSizer( wxVERTICAL );
	
	m_staticText_Error = new wxStaticText( this, wxID_ANY, wxT("Error"), wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE );
	m_staticText_Error->Wrap( 350 );
	m_staticText_Error->SetMaxSize( wxSize( 400,50 ) );
	
	bSizer16->Add( m_staticText_Error, 1, wxALL, 5 );
	
	m_button11 = new wxButton( this, wxID_ANY, wxT("Ok"), wxDefaultPosition, wxDefaultSize, 0 );
	bSizer16->Add( m_button11, 1, wxALIGN_CENTER|wxALL, 5 );
	
	this->SetSizer( bSizer16 );
	this->Layout();
	bSizer16->Fit( this );
	
	// Connect Events
	m_button11->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( Error_Dialog::OnOk ), NULL, this );
}

Error_Dialog::~Error_Dialog()
{
	// Disconnect Events
	m_button11->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( Error_Dialog::OnOk ), NULL, this );
}
